package org.example.order.feign.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import feign.auth.BasicAuthRequestInterceptor;

/**
 * @author tds
 * @version 1.0.0
 * @Company
 * @ClassName CustomFeignInterceptor
 * @Description 自定义feign拦截器
 * @Date 2023-04-17 21:59
 */

public class CustomFeignInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate template) {
        System.out.println("自定义feign拦截器");
        template.header("feign-interceptor-label", "1");
    }
}
